package com.xblibo.xruth.security;

import org.springframework.security.core.context.SecurityContextHolder;

import com.xblibo.xruth.entity.User;

/**
 * <p>Title: SecurityUserHolder.java </p>
 * <p>Description:  </p>
 * <p>Copyright: 易宝 2011*版权所有 </p>
 * <p>Company: yeepay </p>
 * @author xblibo
 * @version 1.0 ,  2011  上午10:38:10
 */
public class SecurityUserHolder {
	
	public static User getCurrentUser() {  
        return (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();  
    }  
	
}
